//***********************************************************************
//	File:		HealthPack.h
//	Author:		
//	Course:		SGP 1405
//	Purpose:	
//***********************************************************************
//***********************************************************************
//	Purposfully left blank for all comments regarding this file 
//	
//	
//	
//***********************************************************************



#pragma once
#include "Entity.h"
#include "Player.h"
#include "../SGD Wrappers/SGD_GraphicsManager.h"
class HealthPack : 
	public Entity
{
public:
	HealthPack(float posX = -1, float posY = -1);
	~HealthPack() = default;
	HealthPack(const HealthPack&) = default;
	HealthPack& operator =(const HealthPack&) = default;

	//Type
	int GetType() const { return ENT_HEALTHPACK; }

	//Interface
	void Update(float dt); 
	void Render(); 
	void HandleCollision(const IEntity* pOther);
	void HandleEvent();
	SGD::Rectangle GetRect() const; 

	//Healthpack specific 
	void Heal(); 

	//Accessor
	float GetHealthAmount(void) { return m_fHealthAmount; }

	//Mutator
	void  SetHealthAmount(float ha) { m_fHealthAmount = ha; }


private:
	float m_fHealthAmount = 0.0; 
	Player* pTarget;
	
};

